package com.i2863.watchdog.inspect;

import com.i2863.watchdog.util.ResponseInfo;

/**
 * @author xuweiwei
 * @date 2017/12/6
 */
public class ContenteEqualsInspector implements Inspector {
    private String content;

    @Override
    public boolean pass(ResponseInfo responseInfo) {
        return  responseInfo.getContent() != null && responseInfo.getContent().equals(content);
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
